<script>
import getLoad from "@/components/public/load.vue";
import getTimeOut from "@/components/public/getTimeOut.vue";
export default {
  components: { getLoad, getTimeOut },
  name: "",
  data() {
    return {
      showCont: false,
      showTimeOut: false,
      orderNum: "",
      enterCheckShow: false,
    };
  },
  props: {},
  setup() {},
  methods: {
    signFn() {
      this.$router.push({ path: "/signFile" });
    },
    personFn() {
      this.$router.push({ path: "/personForm" });
    },
    companyFn() {
      this.$router.push({ path: "/companyForm" });
    },
  },
  mounted() {},
  created() {
    this.showCont = true;
  },
};
</script>
<template>
  <div class="container">
    <div class="showCont" v-if="showCont && !showTimeOut">
      <div class="bannerCont">
        <img src="/img/banner.jpg" />
      </div>
      <div class="mainCont">
        <div class="userCont" v-if="false">
          <div class="userName">吴欢（个体）</div>
          <div class="realBtn">切换主体</div>
        </div>
        <div class="mainTitle">
          <div class="titleShu"></div>
          <div>业务办理</div>
        </div>
        <div class="cardCont">
          <div class="cardItem color2" @click="enterCheckShow = true">
            <div class="iconfont icon-shimingrenzheng"></div>
            <div>主体认证</div>
          </div>
          <div class="cardItem" @click="signFn">
            <div class="iconfont icon-qianhetong-hover"></div>
            <div>签文件</div>
          </div>
        </div>
        <div class="mainTitle hasTop">
          <div class="titleShu"></div>
          <div>签署记录查询</div>
        </div>
        <div class="serchCont">
          <div class="formInput">
            <input
              v-model="orderNum"
              type="text"
              placeholder="请输入事物号进行查询"
            />
          </div>
          <div class="saveBtn" @click="serchFn">
            <span class="iconfont icon-sousuo1"></span>
            <span>点击查询</span>
          </div>
        </div>
        <div class="recordCont">
          <div class="recordItem">
            <div class="itemHead">
              <div class="itemName">教育部学籍在线验证报告</div>
              <div class="itemTag">签署成功</div>
            </div>
            <div class="itemUnder">
              <div class="itemDes">
                <div class="desName">客户名称</div>
                <div class="desText">吴欢</div>
              </div>
              <div class="itemDes">
                <div class="desName">主体类型</div>
                <div class="desText">个人认证</div>
              </div>
              <div class="itemDes">
                <div class="desName">办理柜员</div>
                <div class="desText">张三 · 001(工商银行)</div>
              </div>
              <div class="itemDes">
                <div class="desName">发起时间</div>
                <div class="desText">2025-02-18 15:03:13</div>
              </div>
            </div>
            <div class="itemBtn">
              <div class="iconfont icon-xiazai1"></div>
              <div>下载文件</div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <van-popup v-model:show="enterCheckShow" round position="bottom">
      <div class="maskCont">
        <div class="maskHead">请选择主体认证</div>
        <div class="cardCont">
          <div class="cardItem color2" @click="personFn">
            <div class="iconfont icon-gerenrenzheng"></div>
            <div>个人认证</div>
          </div>
          <div class="cardItem" @click="companyFn">
            <div class="iconfont icon-qiyerenzheng1"></div>
            <div>企业认证</div>
          </div>
        </div>
      </div>
    </van-popup>
    <getLoad v-if="!showCont"></getLoad>
    <getTimeOut v-if="showTimeOut"></getTimeOut>
  </div>
</template>
<style scoped lang="less">
.container {
  background-color: #fff;
  box-sizing: border-box;
  min-height: 100vh;
  .bannerCont {
    width: 100%;
    padding-bottom: 1.5rem;
    background-color: #5177f6;
    img {
      width: 100%;
    }
  }
  .mainCont {
    background-color: #fff;
    margin-top: -1.5rem;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.75rem 4%;
    box-sizing: border-box;
    .userCont {
      background-color: #dce3fd;
      color: #000;
      padding: 0.75rem;
      box-sizing: border-box;
      border-radius: 0.25rem;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      .realBtn {
        color: #5177f6;
      }
    }
    .mainTitle {
      display: flex;
      align-items: center;
      font-weight: bold;
      font-size: 0.75rem;
      .titleShu {
        width: 0.2rem;
        background-color: #5177f6;
        border-radius: 0.2rem;
        height: 1rem;
        margin-right: 0.5rem;
      }
    }
    .serchCont {
      margin-top: 0.75rem;
      .formInput {
        width: 100%;
        padding: 0.75rem;
        box-sizing: border-box;
        // background-color: #ebebeb;
        border: 2px solid #5177f6;
        border-radius: 2rem;
        margin-bottom: 0.75rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        input {
          line-height: 1rem;
          width: 1rem;
          flex: 1;
          border: none;
          outline: none;
          text-align: center;
          background: none;
          color: #5177f6;
        }
        input::input-placeholder {
          color: #5177f6;
        }
        .delBtn {
          font-size: 1rem;
          color: #5177f6;
        }
      }
      .saveBtn {
        width: 100%;
        padding: 0.75rem 0;
        text-align: center;
        background-image: linear-gradient(to right, #bdcbf8, #5177f6);
        color: #fff;
        border-radius: 2rem;
        margin-top: 0.75rem;
        display: flex;
        justify-content: center;
        align-items: center;
        .iconfont {
          font-size: 1rem;
          margin-right: 0.25rem;
        }
      }
    }
    .recordCont {
      margin-top: 0.75rem;
      .recordItem {
        background-color: #f8f8f8;
        padding: 0.75rem;
        box-sizing: border-box;
        border-radius: 0.5rem;
        margin-bottom: 0.75rem;
        .itemHead {
          display: flex;
          align-items: center;
          justify-content: space-between;
          .itemName {
            font-weight: bold;
            flex: 1;
            width: 1rem;
            margin-right: 0.5rem;
          }
          .itemTag {
            padding: 0 1rem;
            height: 1.5rem;
            line-height: 1.5rem;
            font-size: 0.6rem;
            background-image: linear-gradient(
              to right,
              rgb(83, 196, 102),
              #c0e8c9
            );
            color: #fff;
            border-radius: 0.5rem 0 0.5rem 0;
            transform: scale(0.85);
          }
        }
        .itemUnder {
          width: 100%;
          .itemDes {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-top: 0.35rem;
          }
        }
        .itemBtn {
          display: flex;
          justify-content: flex-end;
          margin-top: 0.5rem;
          color: #5177f6;
        }
      }
    }
    .hasTop {
      margin-top: 1rem;
    }
    .cardCont {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin-top: 0.75rem;
      .cardItem {
        text-align: center;
        padding: 1rem 0;
        box-sizing: border-box;
        width: 48%;
        border-radius: 0.5rem;
        background-image: linear-gradient(to right bottom, #c4d1fb, #fff);
        color: #666;
        .iconfont {
          font-size: 1.5rem;
          margin-bottom: 0.5rem;
          color: #5177f6;
        }
      }
      .color2 {
        background-image: linear-gradient(to right bottom, #fedcba, #fff);
        .iconfont {
          color: #ff9860;
        }
      }
    }
  }
  .maskCont {
    padding: 1rem 4%;
    box-sizing: border-box;
    .maskHead {
      width: 100%;
      text-align: center;
      font-size: 0.8rem;
      font-weight: bold;
      margin-bottom: 1rem;
    }
    .cardCont {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin-top: 0.75rem;
      .cardItem {
        text-align: center;
        padding: 1rem 0;
        box-sizing: border-box;
        width: 48%;
        border-radius: 0.5rem;
        border: 1px solid #5177f6;
        color: #5177f6;
        .iconfont {
          font-size: 1.2rem;
          margin-bottom: 0.5rem;
          color: #5177f6;
        }
      }
      .color2 {
        border: 1px solid #ff9860;
        color: #ff9860;
        .iconfont {
          color: #ff9860;
        }
      }
    }
  }
}
</style>
